{% extends 'steed_admin/navbar_demo.html' %}

{% block title %}
    <title>Steed Admin 首页</title>
{% endblock %}

{% load tags %}
{% block main %}
    {% for app_label, admin_models in site.registered_sites.items %}
        <div class="panel panel-primary">
            <div class="panel-heading">{{ app_label }}</div>
            <div class="panel-body">
                <p class="text-info">{{ admin_models.app_config.verbose_name }}</p>
            </div>
            <div class="list-group">
                {% for model_name, admin_obj in admin_models.registers.items %}
                    {% get_meta admin_obj.model as meta %}
                    <a class="list-group-item" href="{{ app_label }}/{{ model_name }}/">
                        {{ meta.verbose_name_plural }}
                    </a>
                {% endfor %}
            </div>
        </div>
    {% endfor %}
{% endblock %}

